package cn.qj.ymcc.constants;

public enum ErrorCode {
    NETWORK_ERROR("1000", "网络异常"),
    USER_NOT_FOUND("1001", "用户不存在"),
    PASSWORD_ERROR("1002", "密码错误"),
    TOKEN_ERROR("1003", "token错误"),
    TOKEN_EXPIRED("1004", "token过期"),
    TOKEN_ABNORMAL("1005", "token异常"),
    USERNAME_EXISTED("1006", "用户名已存在"),
    USERNAME_ABNORMAL("1007", "用户名异常"),
    PASSWORD_ABNORMAL("1008", "密码异常"),
    PASSWORD_LENGTH_ERROR("1009", "密码长度错误"),
    PASSWORD_COMPLEXITY_ERROR("1010", "密码复杂度错误"),
    PASSWORD_SAME_ERROR("1011", "密码不能与用户名相同"),
    PASSWORD_CONFIRM_ERROR("1012", "两次密码不一致");


    private String code;
    private String message;
    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
